<extend name="public:template" />
<block name="title">文章分类编辑</block>
<block name="style">
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css" type="text/css">
</block>
<block name="content">

    <div class="wrap-page">
        <div id="pageBookList" class="page-content">
            <div id="boxBookList" class="box">
                <div class="box-content">
                    <div class="wrap-table">
                        <div class="table-bar table-bar-head clearfix">
                            <div class="fl-l">
                                <div class="tools">
                                    <span class="tool-item"><a class="button button-blue" href="{:U('backend/article_cate/add')}">添加分类</a></span>
                                    <span class="tool-item"><a class="button button-red btn-delete-batch" href="javascript:;" data-url="{:U('backend/article_cate/delete')}">删除所选</a></span>
                                </div>
                            </div>
                            <div class="fl-r">
                                <div class="tools">
                                    <span class="tool-item"><button onclick="javascript:window.location.replace(window.location.href);" class="button button-default" type="button">刷新列表</button></span>
                                </div>
                            </div>
                        </div>
                            <table class="table default-style" cellpadding="0" cellspacing="0" width="100%">
                                <thead>
                                <tr>
                                    <th width="30"><input type="checkbox" name="checkall" class="J_checkall"></th>
                                    <th align="left">{:L('article_cate_name')}</th>
                                    <th width="60"><span data-tdtype="order_by" data-field="id">ID</span></th>
                                    <th width="60">所属类型</th>
                                    <th width="80"><span data-tdtype="order_by" data-field="ordid">{:L('sort_order')}</span></th>
                                    <th width="60"><span data-tdtype="order_by" data-field="status">{:L('status')}</span></th>
                                    <th width="150">{:L('operations_manage')}</th>
                                </tr>
                                </thead>
                                <tbody>
                                {$list}
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="script">
    <script src="__STATIC__/admin/js/treetable.js"></script>
    <script src="__STATIC__/layui/layui.js" type="text/javascript"></script>
    <script>
        $(function(){
            $("#J_cate_tree").treeTable({indent:20,treeColumn:1});
        });
    </script>
</block>